<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>富光爱德家</title>

<link rel="stylesheet" href="{{ static_url('f/s.css') }}" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="{{ static_url('f/jquery.flash.css') }}" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="http://addthis.org.cn/CSS/addthis.css" type="text/css" media="screen, projection" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>

<script src="{{ static_url('f/jquery.flash.js') }}" type="text/javascript"></script>

<script type="text/javascript">
        $(document).ready(function () {
		{% if globals().get('err_msg') %}
		$.flash('{{ err_msg }}');
		{% else %}
		$.flash('我们需要您提供淘宝账户名,但是不需要密码. 优惠码区分大小写, 验证完成后立即失效.');
		{% end %}
		
		$(':input[title]').each(function() {
			var $this = $(this);
			if($this.val() === '') {
			  $this.val($this.attr('title'));
			}
			$this.focus(function() {
			  if($this.val() === $this.attr('title')) {
			    $this.val('');
			  }
			});
			$this.blur(function() {
			  if($this.val() === '') {
			    $this.val($this.attr('title'));
			  }
			});
		});
	});
</script>

</head>
<body>
<div class="wrapper">

<!-- Inner box with content and submit form -->
	<div class="box">
    	<div class="content">
        
<!-- Left content column -->
        	<div class="left">
        		<div class="logo"><img src="{{ static_url('f/logo_s.png') }}" alt="logo" /></div>
        		<h2>创想发现生活</h2>
        		生活在于发现，生活又乐在创想。富光爱德家认为人人都是创想家，都有权享受快乐、健康和时尚的生活。
			这已是富光爱德家所努力的方向。我们致力于提供优秀的<a href="http://www.fuguangchina.com" target="_blank">富光产品</a>和最用心的服务，
			让您尽情发现，恣意创想。
			
			<br />访问 <a href="http://fuguangadj.tmall.com" target="_blank">富光爱德家专卖店</a>
			
			</div>
            
<!-- Right content column -->
            <div class="right">
            		<img src="{{ static_url('f/1.png') }}" class="icon" alt="icon"/><h3>确认账号.</h3>领取前请确认您是否有淘宝的账号，如果无淘宝账号请亲自行注册后领取。<br/>
            		<img src="{{ static_url('f/2.png') }}" class="icon" alt="icon"/><h3>安全保证.</h3>我方只调用淘宝相关接口公开认证的API接口，不会记录任何您在淘宝上的信息。<br/>
            		<img src="{{ static_url('f/3.png') }}" class="icon" alt="icon"/><h3>查看地点.</h3>查看优惠券请在“我的淘宝”左侧的“我的优惠卡卷”内查看使用！<br/>
			<br />
			<script type="text/javascript" src="http://china-addthis.googlecode.com/svn/trunk/addthis.js" charset="UTF-8"></script><span class="addthis_org_cn"><a href="http://addthis.org.cn/share/" title="收藏&amp;分享"><img src="http://addthis.org.cn/images/a3.gif" alt="分享家:Addthis中文版" align="absmiddle" /></a></span>
		</div>
        </div>
        
<!-- Big submit form -->
        <div class="form">
			
        		<form method="post" action="">
  					<label>
  						<input type="text" name="tb_name" id="tb_name" title="淘宝账号" {% if globals().get('tb_name') %}value="{{ tb_name }}"{% end %}/>
  					</label>
					<label>
  						<input type="text" name="code" id="code" title="优惠码" {% if globals().get('code') %}value="{{ code }}"{% end %}/>
  					</label>
 					<label>
						{{ xsrf_form_html() }}
  						<input type="submit" name="submitButton" id="submitButton" value="兑换优惠券" />
					</label>
			</form>
        </div>
	
    </div>
    <div class="footer">
    	Copyleft &copy; 2011 欢迎光临富光爱德家的<a href="http://fuguangadj.tmall.com" target="_blank">淘宝专卖店</a> - 访问 <a href="http://www.ide.fm" target="_blank" >IDE社区</a>
    </div>
</div>

</body>
</html>
